# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=frotz
pkgver=2.53
pkgrel=0
pkgdesc="Portable Z-Machine Interpreter"
url="https://davidgriffith.gitlab.io/frotz/"
arch="all"
license="GPL-2.0-or-later"
makedepends="libao-dev libmodplug-dev libsamplerate-dev libsndfile-dev
	ncurses-dev"
subpackages="$pkgname-doc"
source="https://gitlab.com/DavidGriffith/frotz/-/archive/$pkgver/frotz-$pkgver.tar.bz2"

prepare() {
	default_prepare
	# use our cflags
	sed -i 's/^CFLAGS +=/CFLAGS ?=/g' Makefile
}

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="e920529920a0b831b859323046aeae032b4b84ac0296d4ef35026fe8a62798cf5f9f4e255af38421aa21ad5507cd87287924daafc759c9b9d7a089ba7d77d808  frotz-2.53.tar.bz2"
